package com.ruoyi.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.demo.domain.newMeet;
import com.ruoyi.demo.mapper.NewMeetMapper;
import com.ruoyi.demo.service.INewMeetService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class NewMeetServiceImpl extends ServiceImpl<NewMeetMapper, newMeet> implements INewMeetService {
    @Resource
    NewMeetMapper newMeetMapper;
    @Override
    public Boolean add_item(newMeet meet) {
//        int rows = newMeetMapper.insert(meet);
//        if(rows>0){
//            if(meet.getMeetId()==null){
//                return false;
//            }
//            return newMeetMapper.add_requests_item(meet);
//        }
        return newMeetMapper.insert(meet)>0;
    }
}
